/**
 * Created by 杨涛 on 2020/4/3.
 */
var http = require("http");

function onRequest(request, response) {
    response.writeHead(200, {"Content-Type": "text/plain"});
    response.write("Hello World2");
    response.end();
}

http.createServer(onRequest).listen(8888);